﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Daycare.Models;
using Daycare.DAL;

namespace Daycare.Services
{
    public class FamilyService
    {
        public FamilyService()
        {

        }

        public List<Child> GetChildren(bool excludeInactiveFamilies)
        {
            famRepository = new FamilyRepository();

            return famRepository.GetAllChildren(excludeInactiveFamilies);
        }

        public List<Child> GetFamilyChildren(int selectedChildId)
        {
            famRepository = new FamilyRepository();

            return famRepository.GetFamilyChildren(selectedChildId);
        }

        public List<Contact> GetAdults(int selectedChildId)
        {
            famRepository = new FamilyRepository();

            return famRepository.GetFamilyContacts(selectedChildId);
        }

        public List<Child> children;
        public List<Contact> adults;

        private FamilyRepository famRepository;

        internal object GetFamilyNotes(int p)
        {
            throw new NotImplementedException();
        }
    }
}